﻿ /**
 * 子模块路由
 * Lc
 */

var router = function($urlRouterProvider, $stateProvider){

 	$stateProvider

    //待办列表
    .state('app.teventList', {
        url: "/teventList",
        views: {
            'main@' : {
                template : require('./views/eventList.html'),
                controller : 'teventList',
            }
        },
        resolve:{
            
        }
    })
    //完善企业信息
    .state('app.tcompleteInfo', {
        url: "/tcompleteInfo",
        views: {
            'main@' : {
                template : require('./views/completeInfo.html'),
                controller : 'tcompleteInfo',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }
        }
    })
    
    .state('app.tviewPeople', {
        url: "/tviewPeople",
        views: {
            'main@' : {
                template : require('./views/viewPeople.html'),
                controller : 'tviewPeople',
            }
        },
        resolve:{

        }
    })   
    .state('app.tviewnotice', {
        url: "/tviewnotice?type",
        views: {
            'main@' : {
                template : require('./views/viewnotice.html'),
                controller : 'tviewnotice',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }

        }
    })
    .state('app.tviewnoticelook', {
        url: "/tviewnoticelook",
        views: {
            'main@' : {
                template : require('./views/viewnoticelook.html'),
                controller : 'tviewnoticelook',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }

        }
    })
    .state('app.tcityApplyNoAudit', {
        url: "/tcityApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyNoAudit.html'),
                controller : 'tcityApplyNoAudit',
            }
        },
        resolve:{

        }
    })   
     .state('app.tcityApplyYesAudit', {
        url: "/tcityApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyYesAudit.html'),
                controller : 'tcityApplyYesAudit',
            }
        },
        resolve:{

        }
    })
     .state('app.tcityApplyThirdAudit', {
        url: "/tcityApplyThirdAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyThirdAudit.html'),
                controller : 'tcityApplyThirdAudit',
            }
        },
        resolve:{

        }
    })
    .state('app.tcityThirdApplyAuditInfo', {
        url: "/tcityThirdApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyAuditInfo.html'),
                controller : 'tcityThirdApplyAuditInfo',
            }
        },
        resolve:{

        }
    })
    .state('app.tcityThirdApplyAuditInfoNo', {
        url: "/tcityThirdApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyAuditInfoNo.html'),
                controller : 'tcityThirdApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    })
    .state('app.tcityThirdApplyNoAudit', {
        url: "/tcityThirdApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyNoAudit.html'),
                controller : 'tcityThirdApplyNoAudit',
            }
        },
        resolve:{

        }
    })
    .state('app.tcityThirdApplyYesAudit', {
        url: "/tcityThirdApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyYesAudit.html'),
                controller : 'tcityThirdApplyYesAudit',
            }
        },
        resolve:{

        }
    })


    .state('app.taddviewlidex', {
        url: "/taddviewlidex",
        views: {
            'main@' : {
                template : require('./views/addviewlidex.html'),
                controller : 'taddviewlidex',
            }
        },
        resolve:{

        }
    })
    .state('app.tviewalevelindex', {
        url: "/tviewalevelindex",
        views: {
            'main@' : {
                template : require('./views/viewalevelindex.html'),
                controller : 'tviewalevelindex',
            }
        },
        resolve:{

        }
    })    
        .state('app.taddevaluatepeople', {
        url: "/taddevaluatepeople",
        views: {
            'main@' : {
                template : require('./views/addevaluatepeople.html'),
                controller : 'taddevaluatepeople',
            }
        },
        resolve:{

        }
    }) 
    
    .state('app.tcountryApplyBase', {
        url: "/tcountryApplyBase",
        views: {
            'main@' : {
                template : require('./views/countryApplyBase.html'),
                controller : 'tcountryApplyBase',
            }
        },
        resolve:{

        }
    }) 
    
    .state('app.tcountryApplyAuditInfo', {
        url: "/tcountryApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/countryApplyAuditInfo.html'),
                controller : 'tcountryApplyAuditInfo',
            }
        },
        resolve:{

        }
    }) 
   .state('app.tcountryApplyAuditInfoNo', {
        url: "/tcountryApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/countryApplyAuditInfoNo.html'),
                controller : 'tcountryApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    }) 
   .state('app.tcountryApplyNoAudit', {
        url: "/tcountryApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/countryApplyNoAudit.html'),
                controller : 'tcountryApplyNoAudit',
            }
        },
        resolve:{

        }
    }) 
   .state('app.tcountryApplyYesAudit', {
        url: "/tcountryApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/countryApplyYesAudit.html'),
                controller : 'tcountryApplyYesAudit',
            }
        },
        resolve:{

        }
    }) 
   .state('app.tcountryApplyAudit', {
        url: "/tcountryApplyAudit",
        views: {
            'main@' : {
                template : require('./views/countryApplyAudit.html'),
                controller : 'tcountryApplyAudit',
            }
        },
        resolve:{

        }
    }) 

  .state('app.tcityApplyAuditInfoNo', {
        url: "/tcityApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/cityApplyAuditInfoNo.html'),
                controller : 'tcityApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    }) 
      .state('app.tcityApplyAuditInfo', {
        url: "/tcityApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/cityApplyAuditInfo.html'),
                controller : 'tcityApplyAuditInfo',
            }
        },
        resolve:{

        }
    }) 
      .state('app.tcityApplyFirstAudit', {
        url: "/tcityApplyFirstAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyFirstAudit.html'),
                controller : 'tcityApplyFirstAudit',
            }
        },
        resolve:{

        }
    }) 

   .state('app.tviewevaluatepeople', {
        url: "/tviewevaluatepeople",
        views: {
            'main@' : {
                template : require('./views/viewevaluatepeople.html'),
                controller : 'tviewevaluatepeople',
            }
        },
        resolve:{

        }
    }) 
    //企业审核
   .state('app.treview_company', {
        url: "/treview_company",
        views: {
            'main@' : {
                template : require('./views/review_company.html'),
                controller : 'treview_company',
            }
        },
        resolve:{

        }
    })
    //待办列表
    .state('app.talevelIndexCategory', {
        url: "/talevelIndexCategory?type",
        views: {
            'main@' : {
                template : require('./views/alevelIndexCategory.html'),
                controller : 'talevelIndexCategory',
            }
        },
        resolve:{
            
        }
    })

    .state('app.taddCategory', {
        url: "/taddCategory",
        views: {
            'main@' : {
                template : require('./views/addCategory.html'),
                controller : 'taddCategory',
            }
        },
        resolve:{

        }
    })
    //待审核景区列表
    .state('app.tunaudited_viewlist', {
        url: "/tunaudited_viewlist",
        views: {
            'main@' : {
                template : require('./views/unaudited_viewlist.html'),
                controller : 'tunaudited_viewlist',
            }
        },
        resolve:{

        }
    })
    //已通过景区列表
    .state('app.tpassed_viewlist', {
        url: "/tpassed_viewlist",
        views: {
            'main@' : {
                template : require('./views/passed_viewlist.html'),
                controller : 'tpassed_viewlist',
            }
        },
        resolve:{

        }
    })
    //已通过景区列表
    .state('app.trejected_viewlist', {
        url: "/trejected_viewlist",
        views: {
            'main@' : {
                template : require('./views/rejected_viewlist.html'),
                controller : 'trejected_viewlist',
            }
        },
        resolve:{

        }
    })
    //景区项目列表
    .state('app.tviewproject_list', {
        url: "/tviewproject_list",
        views: {
            'main@' : {
                template : require('./views/viewproject_list.html'),
                controller : 'tviewproject_list',
            }
        },
        resolve:{

        }
    })
    //评定员打分列表
    .state('app.tmark_list', {
        url: "/tmark_list",
        views: {
            'main@' : {
                template : require('./views/mark_list.html'),
                controller : 'tmark_list',
            }
        },
        resolve:{

        }
    })
    
};

module.exports = router;